package cn.good.yan.pojo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 内容
 * @author shengren.yan
 * @create 2022-04-06
 */
@Accessors(chain = true)
@Data
public class Content implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String content;
    private Long uid;

    // 一对多
    List<Bill> bills;

}

// 表
//    CREATE TABLE `content` (
//        `id` int(11) NOT NULL AUTO_INCREMENT,
//        `content` varchar(255) DEFAULT NULL,
//        `uid` int(11) DEFAULT NULL,
//        PRIMARY KEY (`id`),
//        UNIQUE KEY `UK_tn7o9vtw4gqm866usy3w6mmcr` (`uid`),
//        CONSTRAINT `FKnyeavdqtted5ucuugpok1c8t9` FOREIGN KEY (`uid`) REFERENCES `user` (`id`)
//        ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
